import request from '@/utils/request'

// 查询选项表列表
export function listQuestion(query) {
    return request({
        url: '/question/question/list',
        method: 'get',
        params: query
    })
}

// 查询选项表详细
export function getQuestion(id) {
    return request({
        url: '/question/question/' + id,
        method: 'get'
    })
}

// 新增选项表
export function addQuestion(data) {
    return request({
        url: '/question/question',
        method: 'post',
        data: data
    })
}

// 修改选项表
export function updateQuestion(data) {
    return request({
        url: '/question/question',
        method: 'put',
        data: data
    })
}

// 删除选项表
export function delQuestion(id) {
    return request({
        url: '/question/question/' + id,
        method: 'delete'
    })
}

// 查询所有试卷
export function getAllPaper() {
    return request({
        url: '/exam/paper/list',
        method: 'get'
    })
}
